<?php

namespace app\admin\validate\org;

use think\Validate;

class Orggrade extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name'  => 'require|max:255',
        'org_cate_id'   => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['name', 'org_cate_id'],
        'edit' => ['name', 'org_cate_id'],
    ];
    


    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'name' => __('Name'),
            'org_cate_id' => __('Org_cate_id'),
        ];
        parent::__construct($rules, $message, $field);
    }



}
